<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dashboard extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		if((!$this->session->userdata('user_display')) && (!$this->session->userdata('id_user'))):
			redirect('login');
		endif;
	}

	function index()
	{
		$data['slug'] = anchor('dashboard','Dashboard');
		$data['title'] = "Dashboard";
		$data['main_view'] = "dashboard";
		$this->load->view('index',$data);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */